package cn.buk.tms.entity.order.flight;

import cn.buk.tms.entity.base.BaseInfo;

import jakarta.persistence.*;

/**
 * Created by yfdai on 2017-5-31
 * 机票订单的附加服务(关联订单）
 */
@Entity
@Table(name = "t253")
public class FlightOrderExtra extends BaseInfo {

    /**
     * 订单id
     */
    @ManyToOne(cascade = {CascadeType.REMOVE, CascadeType.DETACH, CascadeType.REFRESH})
    @JoinColumn(name = "order_id")
    private FlightOrder order;

    @Column(name = "product_code")
    private String productCode;

    @Column(name = "product_name")
    private String productName;


    /**
     * 标价
     */
    private int price;

    /**
     * 实际卖价
     */
    private int discount;

    /**
     * 成本, 利润=(discount-cost)
     */
    private int cost;

    /**
     * 数量
     */
    private int count;


    /**
     * 关联的vasOrder的id
     */
    @Column(name = "vas_order_id")
    private Integer vasOrderId;

    private String remark;




    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }


    public FlightOrder getOrder() {
        return order;
    }

    public void setOrder(FlightOrder order) {
        this.order = order;
    }


    public Integer getVasOrderId() {
        return vasOrderId;
    }

    public void setVasOrderId(Integer vasOrderId) {
        this.vasOrderId = vasOrderId;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getDiscount() {
        return discount;
    }

    public void setDiscount(int discount) {
        this.discount = discount;
    }

    public int getCost() {
        return cost;
    }

    public void setCost(int cost) {
        this.cost = cost;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
